$f-listview-nav-item-color: $f-text-02;
$f-listview-nav-item-counter-color: $f-theme-03;
$f-listview-nav-link-active-border-color: $f-theme-03;
$f-listview-nav-link-active-bg: $f-aid-02;

$f-listnav-toggle-hover-bg: $f-theme-06 !default;
$f-listnav-toggle-hover-box-shadow: none !default;
$f-listnav-toggle-active-bg: $f-theme-04 !default;
$f-listnav-toggle-active-bg-box-shadow: none !default;

// 支持两行
.f-page-content-nav {
    .f-template-listnav-row {
        .nav-item-name {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            max-height: 2.5rem;
        }
    }
}

.f-template-listnav-row {
    .list-nav-link {
        display: flex;
        align-items: center;
        padding: $f-template-listview-nav-link-inner-gutter;

        &.link-disable {
            background-color: #F9F9F9;
        }

        .nav-item-name {
            flex: 1;
            font-size: 0.875rem;
            line-height: 1.25rem;
            color: $f-listview-nav-item-color;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-item-counter {
            display: inline-block;
            padding: 0 0.3125rem;
            height: 0.875rem;
            line-height: 0.875rem;
            border-radius: 0.5rem;
            font-size: 0.625rem;
            color: $f-listview-nav-item-counter-color;
        }

        &:hover {
            background: $f-listview-nav-link-active-bg;
        }
    }
}

.f-listview-active {
    .f-template-listnav-row {
        .list-nav-link {
            background: $f-listview-nav-link-active-bg;
            border-left: $f-template-listview-nav-link-decoration-line-width solid $f-listview-nav-link-active-border-color;
            padding-left: $f-template-listview-nav-link-inner-gutter-hover-left;

            .nav-item-counter {
                background: $f-listview-nav-item-counter-color;
                color: #fff;
            }
        }
    }
}

//将时间轴模板放入主题样式中
.f-template-timeline-new-row {
    .f-timeline {
        padding-right: 26px;

        .timeline-date {
            position: relative;
            padding-bottom: 16px;
            padding-left: 18px;
            color: rgba(0, 0, 0, 0.45);
            font-size: 14px;
            line-height: 20px;

            &::before {
                position: absolute;
                left: 0;
                top: 0;
                width: 1px;
                height: 35px;
                border-left: 1px dotted #dcdcdc;
                content: '';
                z-index: 9;
            }

            &::after {
                position: absolute;
                left: -3px;
                top: 6.5px;
                display: block;
                width: 7px;
                height: 7px;
                background: #66B869;
                border-radius: 100%;
                content: '';
                z-index: 10;
            }
        }

        .timeline-content-wrapper {
            padding-left: 18px;
            padding-bottom: 13px;
            border-left: 1px dotted #dcdcdc;

            .timeline-content {
                padding: 15px 14px;
                background: #F9F9F9;
                border: 1px solid #F2F2F2;

                &-title {
                    padding-bottom: 12px;
                    font-size: 14px;
                    line-height: 20px;
                    color: rgba(0, 0, 0, 0.65);
                    border-bottom: 1px solid rgba(220, 220, 220, 0.60);

                    .title-sum {
                        line-height: 22px;
                        font-size: 16px;
                        color: #F49730;
                    }
                }

                &-main {
                    .content-data {
                        font-size: 0;
                        margin-top: 16px;

                        li {
                            display: inline-block;
                            padding-right: 30px;
                            margin-bottom: 18px;
                            font-size: 14px;
                            line-height: 20px;
                            color: rgba(0, 0, 0, 0.65);
                        }
                    }

                }
            }
        }

        &.f-timeline-first {
            .timeline-date {
                &::before {
                    height: 28px;
                    top: 7px;
                }
            }
        }

        &.f-timeline-success {
            .timeline-date::after {
                background: $farris-success;
            }
        }

        &.f-timeline-info {
            .timeline-date::after {
                background-color: $farris-info;
            }
        }

        &.f-timeline-error {
            .timeline-date::after {
                background-color: $farris-danger;
            }
        }

        &.f-timeline-warn {
            .timeline-date::after {
                background-color: $farris-warning;
            }
        }
    }
}

//listview 复选框间距修改
.f-list-view-group-item {
    .custom-control.listview-checkbox {
        margin-right: 0;
        padding-right: 4px;
    }
}

// 卡片内容多少时，会出现高低不对齐
.f-listview-card-content-fill .f-list-content {
    height: 100%;
    display: flex;
    flex-direction: column;

    &>* {
        height: 100%;
    }
}

.f-tmpl-card-listview--header-multicontent02 {
    .f-list-view {
        margin: 0;
    }

    .f-list-view-group {
        margin: 0 -10px;
    }

    .f-list-view-content {
        overflow-x: hidden;
    }
}

.f-tmpl-card--header-multicontent02 {
    position: relative;
    margin: 0 10px 20px;

    .f-list-select {
        position: absolute;
        padding: 0 !important;
        top: 10px;
        left: 14px;

        .custom-checkbox {
            margin: 0;
            padding: 0;
        }

        .custom-control-label::before {
            font-size: 1rem;
        }
    }

    .header-multicontent02 {
        background: #FEFEFF;
        border: 1px solid #E9ECF3;
        border-radius: 6px;
        width: 310px;
        margin: 0;

        .text-label {
            color: #5A5E66;
        }

        .f-emphasize {
            font-size: 16px;
            color: $farris-warning;
        }

        .header-multicontent02--header {
            padding: 0 0 0 38px;
            height: 40px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #E9ECF3;



            .f-title {
                margin: 0;
                flex-shrink: 1;
                flex-grow: 1;
                flex-basis: 0;
                font-size: 16px;
                font-weight: 600;
                color: #2D2F33;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .f-state {
                margin: 0 0 0 8px;

                .badge {
                    border-radius: 20px 0 0 20px;
                    height: 28px;
                    line-height: 28px;
                    padding: 0 13px;
                }
            }
        }

        .header-multicontent02--content {
            padding: 14px 0 0 14px;
            color: #2D2F33;
            font-size: 13px;

            p {
                margin: 0 0 10px;
            }
        }

        .header-multicontent02--footer {
            padding: 8px 14px 18px 14px;

            p {
                margin: 0;
            }

            .footer--auxiliary {
                width: 32px;
                border-radius: 16px;
                margin: 0 8px 0 0;

                img {
                    display: block;
                    width: 32px;
                    height: 32px;
                }
            }

            .text--name {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                font-size: 13px;
                color: #5A5E66;
            }

            .icon-btn {
                padding: 2px;
                margin: 0 8px;
                cursor: pointer;

                &.disabled {
                    color: $f-text-07;
                }

                &:hover {
                    color: $f-theme-03;
                }

                .f-icon {
                    font-size: 14px;
                }
            }
        }
    }
}

.f-tmpl-list01-container {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: -1px;

    .f-list-select {
        padding-right: 0 !important;
    }

    .gutter {
        margin: 0 30px 0 0;
    }

    .list01--header {
        font-size: 13px;
        margin: 0 0 3px;

        .f-title {
            font-weight: 600;
            margin: 0 8px 0 0;
            vertical-align: top;
        }

        li {
            display: inline-block;
            margin: 0 30px 3px 0;

            &:last-child {
                margin-right: 0px;
            }
        }

        .badge {
            border-radius: 10px;
            line-height: 20px;
            padding: 0 8px;
        }
    }

    .list01--des {
        font-size: 12px;
        color: rgba(0, 0, 0, 0.50);

        span {
            display: inline-block;
            margin-bottom: 3px;

            &:last-child {
                margin-right: 0;
            }
        }
    }

    .list01--content {
        padding: 16px 12px 16px 8px;
    }

    .list01--toolbar {
        width: 150px;
        padding: 0 14px;
        text-align: right;
    }
}

// 在Listview内分页
.f-list-view-footer .f-paging-wrapper {
    padding: 0 !important;

    .pagination-container {
        height: $farris-grid-pager-height;
    }

    .pagination {
        padding: $farris-grid-pager-inner-gutter;
    }
}